<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            text-align: center;
        }
        span{
            color: gold;
            position: absolute;
            left:0;
            right: 0;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<span>span文字</span>
</body>
</html>